<?php
require_once("./include/db_info.inc.php");
require_once("./bm-header.php");
require_once("./include/funcs.php");
$cache_time=1;
require_once('./include/cache_start.php');

	if (isset($_SESSION['user_id'])){
	echo "<a href=logout.php>Please logout First!</a>";
	exit(1);
}
?>
<div>
        <form action=login.php method=post>
        <center>
        <table width=400 algin=center>
        <tr><td width=200><?php echo 'User ID'?>:<td width=200><input name="user_id" type="text" size=20></tr>
        <tr><td><?php echo 'Password'?>:<td><input name="password" type="password" size=20></tr>
        <?php if($OJ_VCODE){?>
                <tr><td><?php echo 'Verification Code'?>:</td>
                        <td><input name="vcode" size=4 type=text><img alt="click to change" src=vcode.php onclick="this.src='vcode.php#'+Math.random()">*</td>
                </tr>
                <?php }?>
        <tr><td><td><input name="submit" type="submit" size=10 value="Submit">
		</tr>
        </table>
</form>
</div>
<?php
/////////////////////////Common foot
require_once("bm-footer.php");
if(file_exists('./include/cache_end.php'))
	require_once('./include/cache_end.php');
?>

